home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_280 / PlaceObject2_268_43 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-04  |  635 b   |  27 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.hero.hitTest(this.ufotop) && _root.hero._y < this._y)
  3.    {
  4.       this.gotoAndStop(2);
  5.       if(this._y > 283.4 and this._currentframe == 2)
  6.       {
  7.          this._y--;
  8.       }
  9.       if(this._y < 283.5 and this._currentframe == 2 and _root.hero._y > 120)
  10.       {
  11.          this._x += 7;
  12.       }
  13.    }
  14.    else
  15.    {
  16.       this.gotoAndStop(1);
  17.       if(this._y < 283.5 and this._currentframe == 1 and this._x < 900 and _root.hero._y > 120)
  18.       {
  19.          this._x += 7;
  20.       }
  21.       else if(_root.hero._y < 120 and this._x > 100)
  22.       {
  23.          this._x -= 4;
  24.       }
  25.    }
  26. }
  27.